from typing import Dict
### 检测商品库存状态等
def checkItems(items: list[Dict]):
    return items

### 计算费用
def countFee(items: list[Dict]):
    amount, count = 0, 0
    for row in items:
        amount += row['price'] * row['number']
        count += row['number']
    return {'amount': amount, 'count': count, 'items': items}